<?php 
$listreview = $this->allItems;
?>
 <div style="padding:5px;border:1px solid #000;">
       <h2 style="color: pink;; font-weight: bold; font-size: 15pt;">Newest product reviews </h2>
</div>
<br /> 
<div id="productDescription">
            <?php
                foreach ($listreview as $list): 
            ?>           
            <div  style="color: #777; margin-bottom: 10px; border-bottom:1px solid #777; padding-top: 10px;">
            
                <div class="pink">
                    <a href="<?php echo BASE_URL;?>/shop/reviewlist?id=<?php echo $list['ProductNo'];?>">
                    <?php echo $list['Product'];?>
                    </a>
                </div>
                <span id="rating<?php echo $list['review_id'] ?>"></span>&nbsp; 
                &nbsp;
               <!--<a style="color: black !important; font-weight: bold;" href="<?=BASE_URL?>/shop/viewprofilecustomer?customerid=<?php echo $list['customer_id'] ?>&productid=<?php echo $list['product_id']?>">-->
               <b style="color: black !important; font-weight: bold;">
               <?php 
                   if($list['LastName'] != "" || $list['FirstName'] != "")
                    {
                        echo "by ".$list['FirstName']." ".$list['LastName'];
                    }
                ?>
                </b>
               <!-- </a>-->
                &nbsp;
                <?php
                    echo "from ".$list['city']." , ". $list['state'];
                 ?>
                 <br />
                 <br />
                 <?php
                    echo  nl2br($list['description']);
                 ?>
                 <br /><br />
                 <p style="color: #9BA5A5;">
                    <?php
                    echo "Review posted"." ".  $list['datewrite'];
                 ?>
                 </p>
                 <br />
                 
            </div>
            
<script type="text/javascript" charset="utf-8"> 
    $(function(){

    
    $('#rating<?php echo $list['review_id'] ?>').raty({
        path: '<?php echo JS_PATH?>/jquery/jquery.raty-1.3.2/img/',
        start: '<?php echo $list['level'] ?>',
        readOnly:  true,
        half:       true,
        click: function(score) {
            //location.href= "/user/hoidap/vote/?score=" + score + '&id=' + 11;
        }
    });
    
});

</script>
          
            <?php endforeach;?>
             <?php echo $this->paging;?>
        </div>
    </div>
<?php
?>

<script type="text/javascript" src="<?=JS_PATH?>/jquery/media/jquery.media.js"></script> 
<!--script type="text/javascript" src="<?=JS_PATH?>/jquery/jquery.metadata.js"></script--> 
<!--script type="text/javascript" src="http://github.com/malsup/media/raw/master/jquery.media.js?v0.92"></script-->
<script type="text/javascript">
    $(function() {
        $.fn.media.defaults.flvPlayer = '<?=JS_PATH?>/jquery/media/mediaplayer.swf';
        $.fn.media.defaults.mp3Player = '<?=JS_PATH?>/jquery/media/mediaplayer.swf';
        $('a.media').media( { width: 250, height: 187, type:'swf' } );
    });
</script>

<script src="<?php echo JS_PATH?>/jquery/jquery.raty-1.3.2/js/jquery.raty.min.js" type="text/javascript" charset="utf-8"></script>
